﻿@model iChip.Hostpots.Models.AccountModel

@{
    ViewBag.Title = "Thêm mới người dùng";

    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<!-- BEGIN PAGE HEADER-->
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">
            Thêm mới người dùng
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="icon-home"></i>
                <a href="/Admin">Tổng quan</a>
                <i class="icon-angle-right"></i>
            </li>
            <li>
                <a href="javascript:window.history.back();">Danh sách người dùng</a>
                <i class="icon-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    Thêm mới người dùng
                </a>
            </li>
            <li class="pull-right">
            </li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>
<!-- END PAGE HEADER-->
<div class="row">
    <div class="col-md-12">
        <div class="portlet">
            <div class="portlet-body form">
                @using (Html.BeginForm("AddAccount", "Admin", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { id = "addAccountForm", @class = "form-horizontal", role = "form" }))
                {
                    @Html.AntiForgeryToken()
                    @Html.ValidationSummary(true)
                    <div class="form-body">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.LabelFor(model => model.Account_Name, new { @class = "control-label col-md-3" })
                                    <div class="col-md-9">
                                        @Html.TextBoxFor(model => model.Account_Name, new { placeholder = "", @class = "form-control"})
                                        @Html.ValidationMessageFor(model => model.Account_Name)
                                    </div>
                                </div>
                               
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.LabelFor(model => model.Account_FulNname, new { @class = "control-label col-md-3" })
                                    <div class="col-md-9">
                                        @Html.TextBoxFor(model => model.Account_FulNname, new { placeholder = "", @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Account_FulNname)
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.LabelFor(model => model.Account_Email, new { @class = "control-label col-md-3" })
                                    <div class="col-md-9">
                                        @Html.TextBoxFor(model => model.Account_Email, new { placeholder = "", @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Account_Email)
                                    </div>
                                </div>

                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.LabelFor(model => model.Account_Phone, new { @class = "control-label col-md-3" })
                                    <div class="col-md-9">
                                        @Html.TextBoxFor(model => model.Account_Phone, new { placeholder = "", @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Account_Phone)
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.LabelFor(model => model.Password, new { @class = "control-label col-md-3" })
                                    <div class="col-md-9">
                                        @Html.TextBoxFor(model => model.Password, new { placeholder = "", @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Password)
                                    </div>
                                </div>

                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.LabelFor(model => model.ConfirmPassword, new { @class = "control-label col-md-3" })
                                    <div class="col-md-9">
                                        @Html.TextBoxFor(model => model.ConfirmPassword, new { placeholder = "", @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.ConfirmPassword)
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.LabelFor(model => model.Account_Role, new { @class = "control-label col-md-3" })
                                    <div class="col-md-9">
                                        @Html.TextBoxFor(model => model.Account_Role, new { placeholder = "", @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Account_Role)
                                    </div>
                                </div>

                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.LabelFor(model => model.Brander_Id, new { @class = "control-label col-md-3" })
                                    <div class="col-md-9">
                                        @Html.TextBoxFor(model => model.Brander_Id, new { placeholder = "", @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Brander_Id)
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.LabelFor(model => model.Account_Status, new { @class = "control-label col-md-3 checkbox-inline" })
                                    <div class="col-md-9">
                                        @Html.CheckBoxFor(model => model.Account_Status, new { placeholder = "", @class = "form-control" })
                                    </div>
                                </div>

                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.LabelFor(model => model.Account_SuperAdmin, new { @class = "control-label col-md-3 checkbox-inline" })
                                    <div class="col-md-9">
                                        @Html.CheckBoxFor(model => model.Account_SuperAdmin, new { placeholder = "", @class = "form-control" })
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-md-offset-2 col-md-10">
                                <input type="submit" value="Tạo tài khoản" class="btn btn-default blue" />
                            </div>
                        </div>
                    </div>
                }

            </div>
        </div>
    </div>
</div>